text/template/parse.Tree.errorf (method)
20 uses
text/template/parse (current package)
parse.go#L161: func (t *Tree) errorf(format string, args ...any) {
parse.go#L169: t.errorf("%s", err)
parse.go#L200: t.errorf("%s%s", token, extra)
parse.go#L202: t.errorf("unexpected %s in %s", token, context)
parse.go#L265: t.errorf("template: multiple definition of template %q", t.Name)
parse.go#L317: t.errorf("unexpected %s", n)
parse.go#L339: t.errorf("unexpected %s in %s", end, context)
parse.go#L360: t.errorf("unexpected EOF")
parse.go#L431: t.errorf("{{break}} outside {{range}}")
parse.go#L446: t.errorf("{{continue}} outside {{range}}")
parse.go#L483: t.errorf("range can only initialize variables")
parse.go#L486: t.errorf("too many declarations in %s", context)
parse.go#L512: t.errorf("missing value for %s", context)
parse.go#L519: t.errorf("non executable command in pipeline stage %d", i+2)
parse.go#L559: t.errorf("expected end; found %s", next)
parse.go#L645: t.errorf("unexpected %s in %s", end, context)
parse.go#L713: t.errorf("empty command")
parse.go#L746: t.errorf("unexpected . after term %q", node.String())
parse.go#L770: t.errorf("function %q not defined", token.val)
parse.go#L829: t.errorf("undefined variable %q", v.Ident[0])